package com.smartsaas.ugclivii.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum CsysType {
    WCS(1,"工作坐标系"),
    USER_CS(2,"用户坐标系"),
    ABS_CS(3,"绝对坐标系"),
    ;

    public static String getByCode(Integer code){
        for (CsysType csys : CsysType.values()) {
            if (csys.getCoed().equals(code)) {
                return csys.name;
            }
        }
        return null;
    }
    private Integer coed;
    private String name;
}
